package creational.factory;

/**
 * @Description: MySQL数据库方言
 * @Author: lxt
 * @CreateDate: 2019/11/1
 **/
public class MysqlDialect implements DataBaseDialect {
    public String getCountRowsSql(String catalog, String schema, String tableName) {
        return "SELECT TABLE_ROWS AS NUMBER FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = '" + catalog + "' AND TABLE_NAME = '" + tableName + "'";
    }
}
